﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GosWeb.Models.Db;

namespace GosWeb.Biz
{
    public class GeneBiz
    {
        static GeneBiz ins = null;
        GosDBContext db = GosDBContext.GetInstance();

        public static GeneBiz GetInstance()
        {
            if (ins == null)
            {
                ins = new GeneBiz();
            }
            return ins;
        }
        public string GetGeneName(string geneCode)
        {

            Gene g = db.Genes.Find(geneCode);
            if (g == null)
            {
                return string.Empty;
            }
            else
            {
                return g.Name;
            }
        }
    }
}